/*
 ============================================================================
 Name        : ThreadsPPD.h
 Author      : SOogle
 Version     : 1.0
 Copyright   : All rights reserved
 Description : FUSELAGE - FUSE FAT32 FILE SYSTEM
 ============================================================================
 */

#ifndef THREADSPPD_H_
#define THREADSPPD_H_

/*
 ============================================================================
 TIPO DE DATO PARAMETRO UTILIZADO EN LOS THREADS
 ============================================================================
 */

typedef struct struct_thread_lector{
	int32_t socket_id;
}__attribute__ ((__packed__)) struct_thread_lector;

typedef struct NodoPFS{
	int32_t cliente_pfs;
	int32_t cantidadClientes;
	struct NodoPFS *sig;
}__attribute__ ((__packed__))NodoPFS;

/*
 ============================================================================
 PROTOTIPO DE FUNCIONES THREADS
 ============================================================================
 */

void thread_lector_pedidos_raid (void *parametro);
void thread_lector_pedidos_pfs (void *parametro);
void thread_msync ();
void thread_lector_consola (void *parametro);
void insertarEnListaClientes(int32_t cliente_pfs);
void borrarDeListaClientes(int32_t cliente_pfs);
void sigchld_handler(int32_t signal);


#endif /* THREADSPPD_H_ */
